﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserMaster.Master" AutoEventWireup="true" CodeBehind="myorder.aspx.cs" Inherits="QunYing.Web.market.myorder" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style>
        #shopcart h2
        {
            background: url("images/cart_bg_05.gif") no-repeat scroll right top #AACDED;
            height: 28px;
            line-height: 28px;
        }
        #shopcart h2 strong
        {
            background: url("images/cart_bg_03.gif") no-repeat scroll left top transparent;
            display: block;
            height: 28px;
            padding: 0 20px;
        }
        .cart_table
        {
            -moz-border-bottom-colors: none;
            -moz-border-image: none;
            -moz-border-left-colors: none;
            -moz-border-right-colors: none;
            -moz-border-top-colors: none;
            border-color: #AACDED;
            border-style: solid;
            border-width: 0 3px;
            overflow: hidden;
            padding: 20px 17px 0;
        }
        .round
        {
            background: url("images/cart_bg_11.gif") repeat-x scroll 0 top transparent;
            height: 10px;
            margin-bottom: 10px;
        }
        .lround
        {
            background: url("images/cart_bg_09.gif") no-repeat scroll left top transparent;
            float: left;
            height: 10px;
            width: 10px;
        }
        .rround
        {
            background: url("images/cart_bg_10.gif") no-repeat scroll right top transparent;
            float: right;
            height: 10px;
            width: 10px;
        }
        th, td
        {
            border: 1px solid #AACDED;
            padding-left: 5px;
        }
        .navgo
        {
            text-align: right;
            margin: 10px 0px 10px 0px;
        }
table{margin: 2px;}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="main">
      
      <div class="index_box">
        <h2><span><strong>我的</strong>订单</span></h2>
       <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None"
                Width="658px" AutoGenerateColumns="False" DataKeyNames="订单ID" PagerStyle-CssClass="cssPager"
              AllowPaging="True" onpageindexchanging="GridView1_PageIndexChanging">
                <RowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="订单编号">
                        <ItemTemplate>
                            <a target="_blank" href="orderdetail.aspx?id=<%# Eval("订单ID") %>"><%# Eval("订单编号")%></a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="总价">
                        <ItemStyle Font-Bold="True" ForeColor="#FF3300" HorizontalAlign="Center" />
                        <ItemTemplate>
                            ￥<%# Eval("总价")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="总积分" HeaderText="消耗积分" SortExpression="总积分">
                        <ItemStyle Font-Bold="True" ForeColor="#FF3300" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="赠送总积分" HeaderText="赠送积分" SortExpression="赠送总积分">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="最后更新" HeaderText="最后更新" SortExpression="最后更新" 
                        DataFormatString="{0:yyyy-MM-dd HH:mm}" />
                    <asp:BoundField DataField="订单状态" HeaderText="订单状态" SortExpression="订单状态" />
                </Columns>
                <FooterStyle BackColor="#EBF4FB" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#EBF4FB" HorizontalAlign="Right" CssClass="cssPager"  />
                <EmptyDataTemplate>
                    没有订单信息
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#EBF4FB" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
      </div>
      <div class="index_box">
        <h2><span><strong>历史</strong>订单</span></h2>
       <asp:GridView ID="GridView2" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None"
                Width="658px" AutoGenerateColumns="False" DataKeyNames="订单ID" PagerStyle-CssClass="cssPager"
              AllowPaging="True" onpageindexchanging="GridView2_PageIndexChanging">
                <RowStyle BackColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="订单编号">
                        <ItemTemplate>
                            <a target="_blank" href="orderdetail.aspx?id=<%# Eval("订单ID") %>"><%# Eval("订单编号")%></a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="总价">
                        <ItemStyle Font-Bold="True" ForeColor="#FF3300" HorizontalAlign="Center" />
                        <ItemTemplate>
                            ￥<%# Eval("总价")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="总积分" HeaderText="消耗积分" SortExpression="总积分">
                        <ItemStyle Font-Bold="True" ForeColor="#FF3300" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="赠送总积分" HeaderText="赠送积分" SortExpression="赠送总积分">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="最后更新" HeaderText="最后更新" SortExpression="最后更新" 
                        DataFormatString="{0:yyyy-MM-dd HH:mm}" />
                    <asp:BoundField DataField="订单状态" HeaderText="订单状态" SortExpression="订单状态" />
                </Columns>
                <FooterStyle BackColor="#EBF4FB" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#EBF4FB" HorizontalAlign="Right"  />
                <EmptyDataTemplate>
                    没有历史订单
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#EBF4FB" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
      </div>
    </div>  
</asp:Content>
